package org.lifei.gift.clients;

import org.lifei.gift.clients.fallback.AuthClientFallback;
import org.lifei.gift.domain.LoginUser;
import org.lifei.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 授权中心对外提供的client接口,供别的服务来进行调用的
 */
@FeignClient(value = "gift-auth",fallbackFactory = AuthClientFallback.class)
public interface AuthClient {

    @PutMapping("/loginUser")
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);

}
